package com.ruoyi.common.core.domain.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 分析对象对象 t_safetyanalysis_object
 * 
 * @author ruoyi
 * @date 2022-03-29
 */
public class TSafetyanalysisObject extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 编号 */
    @Excel(name = "编号")
    private String code;

    /** 分析对象 */
    @Excel(name = "分析对象")
    private String name;

    private String parentname;

    private Long parentid;

    /** 责任部门name */
    @Excel(name = "责任部门name")
    private String deptname;

    /** 责任部门id */
    @Excel(name = "责任部门id")
    private Integer deptid;

    private String deptcode;
    /** 责任人id */
    @Excel(name = "责任人id")
    private Integer userid;

    /** 责任人 */
    @Excel(name = "责任人")
    private String username;

    /** 是否重大危险源 */
    @Excel(name = "是否重大危险源")
    private Integer isdanger;

    private String typecode;

    private String typename;

    private Integer reportstatus;

    /** companyId */
    @Excel(name = "companyId")
    private Integer companyid;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createts;

    /** 创建人 */
    @Excel(name = "创建人")
    private Integer createdby;

    private String createdname;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParentname() {
        return parentname;
    }

    public void setParentname(String parentname) {
        this.parentname = parentname;
    }

    public Long getParentid() {
        return parentid;
    }

    public void setParentid(Long parentid) {
        this.parentid = parentid;
    }

    public void setDeptname(String deptname) 
    {
        this.deptname = deptname;
    }

    public String getDeptname() 
    {
        return deptname;
    }
    public void setDeptid(Integer deptid)
    {
        this.deptid = deptid;
    }

    public Integer getDeptid()
    {
        return deptid;
    }

    public String getDeptcode() {
        return deptcode;
    }

    public void setDeptcode(String deptcode) {
        this.deptcode = deptcode;
    }
    public void setUserid(Integer userid)
    {
        this.userid = userid;
    }

    public Integer getUserid()
    {
        return userid;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setIsdanger(Integer isdanger) 
    {
        this.isdanger = isdanger;
    }

    public Integer getIsdanger() 
    {
        return isdanger;
    }

    public String getTypecode() {
        return typecode;
    }

    public void setTypecode(String typecode) {
        this.typecode = typecode;
    }

    public String getTypename() {
        return typename;
    }

    public void setTypename(String typename) {
        this.typename = typename;
    }

    public Integer getReportstatus() {
        return reportstatus;
    }

    public void setReportstatus(Integer reportstatus) {
        this.reportstatus = reportstatus;
    }

    public void setCompanyid(Integer companyid)
    {
        this.companyid = companyid;
    }

    public Integer getCompanyid()
    {
        return companyid;
    }
    public void setCreatets(Date createts) 
    {
        this.createts = createts;
    }

    public Date getCreatets() 
    {
        return createts;
    }
    public void setCreatedby(Integer createdby)
    {
        this.createdby = createdby;
    }

    public Integer getCreatedby()
    {
        return createdby;
    }

    public String getCreatedname() {
        return createdname;
    }

    public void setCreatedname(String createdname) {
        this.createdname = createdname;
    }
    //非表字段
    private List<TSafetyanalysisObject> children = new ArrayList<TSafetyanalysisObject>();

    public Integer levelcode;

    private List<String> listcode;

    private String objectname;

    private List<String> listname;

    public List<Long> listIds;

    public TSafetyanalysisBbTask bbTask;

    public List<TSafetyanalysisObject> getChildren() {
        return children;
    }

    public void setChildren(List<TSafetyanalysisObject> children) {
        this.children = children;
    }

    public Integer getLevelcode() {
        return levelcode;
    }

    public void setLevelcode(Integer levelcode) {
        this.levelcode = levelcode;
    }

    public List<String> getListcode() {
        return listcode;
    }

    public void setListcode(List<String> listcode) {
        this.listcode = listcode;
    }

    public String getObjectname() {
        return objectname;
    }

    public void setObjectname(String objectname) {
        this.objectname = objectname;
    }

    public List<String> getListname() {
        return listname;
    }

    public void setListname(List<String> listname) {
        this.listname = listname;
    }
    public List<Long> getListIds() {
        return listIds;
    }

    public void setListIds(List<Long> listIds) {
        this.listIds = listIds;
    }

    public TSafetyanalysisBbTask getBbTask() {
        return bbTask;
    }

    public void setBbTask(TSafetyanalysisBbTask bbTask) {
        this.bbTask = bbTask;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deptname", getDeptname())
            .append("deptid", getDeptid())
            .append("userid", getUserid())
            .append("username", getUsername())
            .append("isdanger", getIsdanger())
            .append("companyid", getCompanyid())
            .append("createts", getCreatets())
            .append("createdby", getCreatedby())
            .toString();
    }
}
